<template>
  <div>
    <van-nav-bar class="title" left-arrow @click-left="$router.back()">
      <template #right>
        <van-icon name="guide-o" size="18" color='#fff'/>
      </template>
     <template #title>
       <van-search
        class="search"
        v-model="value"
        placeholder="请输入小区或地址"
        background="none"
      >
        <template #label>
          <div @click="onSearch">上海</div>
        </template>
      </van-search>
     </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  name: 'HaokeFindhouse',

  data () {
    return {
      value: ''
    }
  },

  mounted () {},

  methods: {
    onSearch () {}
  }
}
</script>

<style lang="less" scoped>
/deep/.van-search {
  background-color: #fff;
}
.title {
  background-color: #56b27b;
}
/deep/ .van-nav-bar__left .van-icon {
  color: #fff;
}
.title {
  position: relative;
  .search {
    position: absolute;
    top: 10px;
    left: 5px;
    z-index: 99999;
    width: 310px;
    height: 34px;
    margin-left: 30px;
    margin-top: -5px;
  }
}
</style>
